<template>
	<view class="notice_box flexs1">
		<image src="../../static/img/sy_img_td@2x.c3efb838.png"></image>
		<view class="topbottombox">
			<swiper class="swiper" :autoplay="true" :vertical="true" :interval="2000" circular :duration="1000">
				<swiper-item v-for="(item,index) in swiperList" :key="index">
					<view class="swiper-item">
						<view class="swiper-item-left">{{item.icon}}</view>
						<view class="swiper-item-right">{{item.name}}</view>
					</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
	export default {
		props:['swiperList']
	}
</script>

<style lang="scss" scoped>
	.notice_box {
		width: 750rpx;
		height: 140rpx;
		background: #fff;
		margin-bottom: 20rpx;
	
		image {
			width: 120rpx;
			height: 120rpx;
			margin: 0 22rpx 0 28rpx;
		}
	
		.topbottombox {
			margin-left: 40rpx;
			width: 640rpx;
			height: 60rpx;
	
			.swiper {
				height: 70rpx !important;
	
				.swiper-item {
					height: 80rpx !important;
					padding: 10rpx 0;
					line-height: 60rpx !important;
					display: flex;
					align-items: center;
					justify-content: flex-start;
	
					.swiper-item-left {
						width: auto;
						padding: 0 14rpx;
						height: 36rpx;
						background: #ff3b30;
						border-radius: 4rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						color: #fff;
						font-size: 22rpx;
						margin-right: 24rpx;
					}
	
					.swiper-item-right {
						width: 400rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap
							/*溢出不 */
						;
					}
				}
			}
		}
	}
	
</style>
